Skip to content

Conversation

aadeshps-mcw
Copy link
Contributor

--Modify the test zero-length-array.ll with target triple spirv-unknown-vulkan-compute.

@aadeshps-mcw aadeshps-mcw marked this pull request as draft August 5, 2025 04:58
@llvmbot
Copy link
Member

llvmbot commented Aug 5, 2025

@llvm/pr-subscribers-backend-spir-v

Author: Aadesh Premkumar (aadeshps-mcw)

Changes

--Modify the test zero-length-array.ll with target triple spirv-unknown-vulkan-compute.


Full diff: https://github.com/llvm/llvm-project/pull/152078.diff

1 Files Affected:

  • (modified) llvm/test/CodeGen/SPIRV/zero-length-array.ll (+5-4)
diff --git a/llvm/test/CodeGen/SPIRV/zero-length-array.ll b/llvm/test/CodeGen/SPIRV/zero-length-array.ll
index 668bf2018dec7..cd29851684af1 100644
--- a/llvm/test/CodeGen/SPIRV/zero-length-array.ll
+++ b/llvm/test/CodeGen/SPIRV/zero-length-array.ll
@@ -1,9 +1,10 @@
-; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
-; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}
 
+; CHECK: %[[#void:]] = OpTypeVoid
 ; CHECK: %[[#type:]] = OpTypeInt 32 0
-; CHECK: %[[#ext:]] = OpTypeRuntimeArray %[[#type]]
-; CHECK: %[[#]] = OpTypePointer Function %[[#ext]]
+; CHECK: %[[#ext:]] = OpConstant %[[#type]] 0
+; CHECK: %[[#]] = OpFunction %[[#void]]
 
 define spir_func void @_Z3foov() {
 entry:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants